import Vue from 'vue'
import FastClick from 'fastclick'
import App from './App.vue'
import Bridge from './tools/bridge.js'
import router from './router'
import './assets/fit.less'
import 'normalize.css'
import './assets/responsive'
import './assets/common.less'

if ('addEventListener' in document && 'ontouchstart' in window) {
    FastClick.prototype.focus = function (targetElement) {
        targetElement.focus()
    }
    document.addEventListener('DOMContentLoaded', function () {
        FastClick.attach(document.body)
    }, false)
}
Vue.config.productionTip = false
Vue.prototype.$bridge = Bridge

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')